<template>
<div class="container">
    <!-- 半圆形装饰-->
    <div class="semi-circle">
        <img src="https://typora-xxxx.oss-cn-beijing.aliyuncs.com/decorate.png" alt="半圆形装饰图案">
    </div>
    
    <!-- 圆形头像 -->
    <div class="profile-img">
        <img src="https://typora-xxxx.oss-cn-beijing.aliyuncs.com/touxiang.png" alt="个人头像">
    </div>
    
    <!-- 姓名 -->
    <div class="name">唐梦童</div>
    
    <!-- 职称 -->
    <div class="position">投资运营部 项目经理</div>
    
    <!-- 快捷功能标题 -->
    <div class="functions-title">快捷功能</div>
    
    <!-- 四个功能图标 -->
    <div class="quick-functions">
        <button class="function-item" @click="handleClick1"><el-icon :size="20" id="icon"><Stamp/></el-icon></button>
        <button class="function-item" @click="handleClick2"><el-icon :size="20" id="icon"><User/></el-icon></button>
        <button class="function-item" @click="handleClick3"><el-icon :size="20" id="icon"><Files/></el-icon></button>
        <button class="function-item" @click="handleClick4"><el-icon :size="20" id="icon"><BellFilled /></el-icon></button>
    </div>
    </div>
</template>

<script setup lang="ts">
import router from '@/router';
import { ElNotification } from 'element-plus'
import tasks from '@/views/backlog/components/BacklogList.vue'
function handleClick1(){
    // router.push('@/views/account/index.vue');
}
function handleClick2(){
    // router.push('/backlog/components/Stamp');
}
function handleClick3(){
    // router.push('/backlog/components/Stamp');
}
const now = new Date();

const handleClick4 = () => {
    ElNotification({
    title: '通知提醒',
    message: `请尽快完成"投后管理"项目信息填报工作
    ${now.toLocaleString()}`
})
}
</script>

<style scoped>
.container {
    display: flex;
    position: relative;
    width: 400px;
    height: 450px;
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}
    /* 半圆形装饰 */
.semi-circle {
    position: absolute;
    top: 100px;
    width: 160px;
    height: 89px;
    height: 89px;
    z-index: 1;
}
.semi-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
    /* 圆形头像 */
.profile-img {
    position: absolute;
    top:36px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
}
.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.name {
    position: absolute;
    top: 200px;
    width: 60px;
    height: 23px;
    font-size: 20px;
    color: #006DB8;
    line-height: 23px;
    text-align: center;
    margin: 0;
    z-index: 3;
}
    /* 职称 */
.position {
    position: absolute;
    top: 240px;
    width: 153px;
    height: 18px;
    font-size: 16px;
    color: #7F7F7F;
    line-height: 18px;
    text-align: center;
    margin: 0;
    z-index: 3;
}
    /* 快捷功能标题 */
.functions-title {
    position:absolute;
    top:300px;
    left: 28px;
    width: 64px;
    height: 18px;
    font-size: 16px;
    color: #000;
    line-height: 18px;
    text-align:left;
    margin: 0;
    z-index: 3;
}
    /* 四个功能图标背景框 */
.quick-functions{
    display: flex;
    justify-content:space-around;
    width:320px;
    height: 56px;
    position: absolute;
    top:340px
}
.function-item {
    width: 56px;
    height: 56px;
    border-radius: 5px;
    background-color: rgba(0, 109, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    z-index: 3;
    border: none;
}
#icon{
    color: #006DB8;
}
</style>